#!/bin/sh
name="hello world"
echo ${name}

androidRoot="/home/coffcat/tiny4412/android/android-4.2.2_r1"
jarName="android.policy.jar"
jarSourceDir="$androidRoot/out/target/product/tiny4412/system/framework"
jarDestDir="system/framework"

echo $(pwd)
echo ${jarName}
echo $jarSourceDir
echo $jarDestDir
echo "$jarDestDir/$jarName"

adb remount
adb shell "chmod 664 ${jarDestDir}/${jarName}"
#echo "chmod 664 $jarDestDir/$jarName"
adb push $jarSourceDir/$jarName $jarDestDir/
#echo "cp $jarSourceDir/$jarName $jarDestDir/"
adb shell "chmod 644 $jarDestDir/$jarName"

